<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">列表</a></li>
        <li><a href="{:url('add')}">添加</a></li>
    </ul>
   <form class="well form-inline margin-top-20" method="post" action="">&nbsp;
       添加时间:
        <input type="text" class="form-control js-bootstrap-datetime" name="start_time" value="{$start_time}"
               style="width:180px;" autocomplete="off">-
        <input type="text" class="form-control js-bootstrap-datetime" name="end_time" value="{$end_time}"
               style="width:180px;" autocomplete="off">&nbsp;筛选:
        <select class="form-control" name="searchType" id="searchType" aria-invalid="false">
            <option value=""
            <empty name="searchType">selected="selected"</empty>
            >&#45;&#45;请选择&#45;&#45;</option>
            <option value="a.company_title"
            <eq name="$searchType" value="a.company_title">selected="selected"</eq>
            >名称</option>
            <option value="b.user_login"
            <eq name="$searchType" value="b.user_login">selected="selected"</eq>
            >账号</option>
        </select>
        <input class="form-control" type="text" name="keyword" style="width:200px;" value="{$keyword}"
               placeholder="请输入关键词">
        <input type="submit" class="btn btn-primary" value="搜索" style="margin-left: 10px;">
       <a class="btn btn-danger" href="{:url('index')}">清空</a>
    </form>
    <form method="post" class="js-ajax-form" action="{:url('sort')}">
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="">ID</th>
                <th width="">名称</th>
                <th width="">添加时间</th>
                <th width="">更新时间</th>
                <th width="">状态</th>
                <th width="">操作</th>
            </tr>
            </thead>
            <volist name="infos['list']" id="vo">
                <tr>

                    <td>{$vo.id}</td>
                    <td>{$vo.spot_title|mb_substr=###,0,20,'utf-8'|default='---'}</td>
                    <td>
                        <gt name="vo.create_time" value="0">{$vo['create_time']|date='Y-m-d H:i',###}</gt>
                    </td>
                    <td>
                        <gt name="vo.create_time" value="0">{$vo['update_time']|date='Y-m-d H:i',###}</gt>
                    </td>
                    <td>{$infos['spotStatusArr'][$vo['status']]}</td>
                    <td>
                        <a href="{:url('edit',array('uuid'=>$vo['uuid']))}">编辑</a>
                    </td>
                </tr>
            </volist>
        </table>
        <ul class="pagination">{$infos['list']->render ()|default=''}</ul>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<link href="__STATIC__/css/index.css" rel="stylesheet" type="text/css">
</body>
</html>
